package com.example.roadeyeserver.controller;

import com.example.roadeyeserver.entity.vo.ZjcbAisVO;
import com.example.roadeyeserver.result.Result;
import com.example.roadeyeserver.service.ZjcbAisService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("zjcbAis")
public class ZjcbAisController {

    @Resource
    private ZjcbAisService zjcbAisService;

    @PostMapping("getLatestRecords")
    public Result<List<ZjcbAisVO>> getLatestRecords() {
        return zjcbAisService.getLatestRecords();
    }

}
